package com.cx.base.day26_序列化;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
public class Person extends Pepole{

    private String localHost;

    private String other;

    public Person(String localHost,String other){
        this.setLocalHost(localHost);
        this.setOther(other);
    }

    public Person(String localHost,String other,String name,String age){
        this.localHost = localHost;
        this.other = other;
        super.setName(name);
        super.setAge(age);
    }

    @Override
    public String toString() {
        return "Person{" +
                "localHost='" + localHost + '\'' +
                ", other='" + other + '\'' +
                '}';
    }
}
